package com.constant;

import com.pojo.AreaVo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class DataConstant {
    // 省数据s
    public static List<AreaVo> provinces = Stream.of(
            new AreaVo(1, "河北省", 0),
            new AreaVo(2, "河南省", 0),
            new AreaVo(3, "山西省", 0),
            new AreaVo(4, "山东省", 0),
            new AreaVo(5, "四川省", 0)
    ).collect(Collectors.toList());

    public static List<AreaVo> cities = Stream.of(
            new AreaVo(1, "xx1", 5),
            new AreaVo(2, "xx2", 5),
            new AreaVo(3, "xx3", 1),
            new AreaVo(4, "xx4", 1),
            new AreaVo(5, "xx5", 2),
            new AreaVo(6, "xx6", 3),
            new AreaVo(7, "xx7", 2),
            new AreaVo(8, "xx8", 4)
    ).collect(Collectors.toList());

    public static List<AreaVo> areas = Stream.of(
            new AreaVo(1, "xx1", 7),
            new AreaVo(2, "xx2", 6),
            new AreaVo(3, "xx3", 1),
            new AreaVo(4, "xx4", 1),
            new AreaVo(5, "xx5", 2),
            new AreaVo(6, "xx6", 3),
            new AreaVo(7, "xx7", 2),
            new AreaVo(8, "xx8", 4)
    ).collect(Collectors.toList());

    public static Map<Integer, List<AreaVo>> dataMap = new HashMap<Integer, List<AreaVo>>();
        static {
            dataMap.put(1, provinces);
            dataMap.put(2, cities);
            dataMap.put(3, areas);
        }


}
